<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::namespace('App\Http\Controllers')->group(function (Router $router) {

    Route::any('/login', 'LoginController@login')->name('login');
    Route::post('/upload', 'FileController@store');
    //$router->resource('maintain-order', 'MaintainOrderController');
    Route::get('/maintain-order', 'MaintainOrderController@index');
    Route::get('/maintain-order-show/{id}', 'MaintainOrderController@show');
    Route::any('/maintain-order-add', 'MaintainOrderController@add');
    Route::any('/maintain-order-edit/{id}', 'MaintainOrderController@edit');

});


